#ifndef ABOUTPAGE_H
#define ABOUTPAGE_H

#include <QWidget>

//关于界面
namespace Ui {
class AboutPage;
}

class AboutPage : public QWidget
{
    Q_OBJECT

private:
    explicit AboutPage(QWidget *parent = nullptr);

public:
    ~AboutPage();
    //获取单例对象
    static AboutPage *getObject();

protected:
    //鼠标事件
    void mousePressEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);

private slots:
    //退出按钮槽函数
    //隐藏当前界面
    void on_btnExit_clicked();

private:
    Ui::AboutPage *ui;                  //ui界面
    static AboutPage *ap;               //单例对象
    bool isMove = false;                //是否移动
    QPoint oldPos;                      //起始坐标
};

#endif // ABOUTPAGE_H
